package com.huishu.user.fegin;

import com.huishu.commons.pojo.Result;
import com.huishu.user.fegin.fallback.OrderFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName：CouponFeignClient
 * @Author: ljj
 * @Date: 2023/7/5 9:48
 * @Description:
 */
@FeignClient(name = "coupon-server", path = "/coupon", fallbackFactory = OrderFeignClientFallBack.class)
public interface CouponFeignClient {


    @GetMapping("/coupon-history/sendReceiveAssociationCoupon/{openId}/{userId}")
    Result sendReceiveAssociationCoupon(@PathVariable String openId,@PathVariable Long userId);

}
